<?php
/**
 * Author: Hancock
 * Email: 84622365@qq.com
 * Date: 7/18/2016
 * Des: 系统管理员
 */
defined('INHkMvc') or exit('Access Invalid!');

class App_owner_goodModel extends AppModel
{   
    public function uploadOwnerGood($owner_good,$member_id){
       $data=[];
       if(!array_key_exists('good_name', $owner_good) && empty($owner_good['good_name'])){
            return false;
       }
       $data['good_name']=trim($owner_good['good_name']);
       $data['add_time']=time();
       $data['brand']=intval($owner_good['good_brand']);
       $data['good_class_id']=intval($owner_good['good_class_id']);
       $data['member_id']=intval($member_id);
       $data['source']=trim($owner_good['source']);
       $data['pict_url']=trim($owner_good['pict_url']);
       $data['good_price']=trim($owner_good['good_price']); 
       return $this->insert($data);
    }
}
